package com.nuoniu.sibanyun.entity.erp.in;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 计量单位
 * </p>
 *
 * @author baiqiang
 * @since 2020-09-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("scb_unit")
@ApiModel(value="InUnit对象", description="计量单位")
public class InUnit extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "账套id")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "计量组id")
    @TableField("unit_group_id")
    private Integer unitGroupId;

    @ApiModelProperty(value = "计量组名称")
    @TableField(exist = false)
    private String unitGroupName;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "计量单位编号")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "计量单位名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "是否主计量")
    @TableField("is_main_unit")
    private Boolean isMainUnit;

    @ApiModelProperty(value = "是否单计量 ")
    @TableField("is_single_unit")
    private Boolean isSingleUnit;

    @ApiModelProperty(value = "是否单位组合")
    @TableField("is_group")
    private Boolean isGroup;

    @ApiModelProperty(value = "换算率 ")
    @TableField("change_rate")
    private BigDecimal changeRate;

    @ApiModelProperty(value = "换算说明")
    @TableField("rate_description")
    private String rateDescription;

    @ApiModelProperty(value = "状态0停用 1启用 2删除")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "变动类型")
    @TableField("change_type")
    private Integer changeType;

    @ApiModelProperty(value = "换算类型 0：固定 1:浮动")
    @TableField("convert_type")
    private Integer convertType;

    @ApiModelProperty(value = "制单日期 ")
    @TableField("made_date")
    private LocalDateTime madeDate;

    @ApiModelProperty(value = "修改人iid")
    @TableField("update_user_id")
    private Integer updateUserId;

    @ApiModelProperty(value = "创建人id")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "修改日期")
    @TableField("update_date")
    private LocalDateTime updateDate;

    @ApiModelProperty(value = "创建日期")
    @TableField("create_date")
    private LocalDateTime createDate;


}
